/* eslint-disable prettier/prettier */
 
export interface Button {
    title: string;
    value: string;
  }

  export const buttons: Button[] = [
    { title: '第一关', value: 'unit0' },
    { title: '第二关', value: 'unit1' },
    { title: '第三关', value: 'unit2' },
    { title: '第四关', value: 'unit3' },
    { title: '第五关', value: 'unit4' },
    { title: '第六关', value: 'unit5' },
    { title: '第七关', value: 'unit6' },
    { title: '第八关', value: 'unit7' },
    { title: '第九关', value: 'unit8' },
  ];

  export const handleButtonPress = async (value: string, navigation: any): Promise<void> => {
    console.log('Pressed:', value + navigation);
    navigation.navigate('warm', { unit: value,strc: 'adventure',page: 1 });
};